package cn.sofwin.day0126.homework.Car;

public final class Car extends MotoVehicle{
    // 轿车品牌
    private String Brand;

    public Car(String no, String brand) {
        super(no);
        Brand = brand;
        super.setType("轿车");
    }

    @Override
    public double CalcRent(int days) {
        if ("别克商务舱GL8".equals(Brand)){
            return days * 600;
        }else if ("宝马550i".equals(Brand)){
            return days * 500;
        }else if ("别克林荫大道".equals(Brand)){
            return days * 300;
        }
        return 0;
    }
}
